#!/usr/bin/env python3

import pyperclip,sys

passwd = {'zimingzpp':'zpp123'}

if len(sys.argv) < 2:
    print('Usage: py pw.py [account] - copy account password')
    sys.exit()

account = sys.argv[1]

if account in passwd:
    pyperclip.copy(passwd[account])
    print('Password for '+ account + ' copied')
else:
    print('There is no password information for ' + account)
